package com.lambda_;

public class Demo1 {
    public static void main(String[] args) {
        show(() -> {  // 无参数
            System.out.println("吃饭了");
        });
    }

    public static void show(Cooker c) {
        c.makeFood();
    }
}

interface Cooker {
    void makeFood();
}